// components/treeholesq/treeholesq.js
const app = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    treeHoleMsg:[]

  },

  attached: function() {
    // 在组件实例进入页面节点树时执行
     var sid=app.globalData.sid
    wx.request({
      url: 'https://smart.songblog.top/getTreeHoleMsg',
      data: {sid},
      header: {'content-type':'application/json'},
      method: 'GET',
      dataType: 'json',
      responseType: 'text',
      success: (result) => {
        console.log(result)
        this.setData({
          treeHoleMsg:result.data
        })

      },
      fail: () => {},
      complete: () => {}
    });

    wx.hideShareMenu()

      
  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})
